package com.bootdo.hjh.dao;

import com.bootdo.hjh.domain.ProductDO;
import com.bootdo.hjh.domain.ProductDOExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

import java.util.List;
@Mapper
public interface ProductDOMapper {
    int countByExample(ProductDOExample example);

    int deleteByExample(ProductDOExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(ProductDO record);

    int insertSelective(ProductDO record);

    List<ProductDO> selectByExampleWithRowbounds(ProductDOExample example, RowBounds rowBounds);

    List<ProductDO> selectByExample(ProductDOExample example);

    ProductDO selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") ProductDO record, @Param("example") ProductDOExample example);

    int updateByExample(@Param("record") ProductDO record, @Param("example") ProductDOExample example);

    int updateByPrimaryKeySelective(ProductDO record);

    int updateByPrimaryKey(ProductDO record);

    Long sumByExample(ProductDOExample example);

    void batchInsert(@Param("items") List<ProductDO> items);
}